package com.alibaba.cloud.exception;

import com.alibaba.cloud.enums.ResultCodeEnum;

import lombok.Getter;

/**
 * @author: zhb1316783262@163.com
 * @date: 2018年5月27日 下午8:33:18
 * @Description: 业务异常
 */
@Getter
public class BusinessException extends RuntimeException {

	private ResultCodeEnum codeEnum;

	private static final long serialVersionUID = -371928259124714855L;

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(ResultCodeEnum codeEnum, String message) {
		super(message);
		this.codeEnum = codeEnum;
	}

	public BusinessException(ResultCodeEnum codeEnum, String message, Throwable cause) {
		super(message, cause);
		this.codeEnum = codeEnum;
	}
}
